package com.beyond.market.orders.service.impl;

import com.beyond.market.orders.dao.OrderDetailsMapper;
import com.beyond.market.orders.domain.OrderDetails;
import com.beyond.market.orders.service.OrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class OrderDetailsServiceImpl implements OrderDetailsService {
    @Autowired
    private OrderDetailsMapper orderDetailsMapper;
    @Override
    public List<OrderDetails> listById(Integer id) throws SQLException {
        return orderDetailsMapper.listById(id);
    }

    @Override
    public Integer save(OrderDetails orderDetails) throws SQLException {
        return orderDetailsMapper.save(orderDetails);
    }

    @Override
    public Integer delete(Integer id) throws SQLException {
        return orderDetailsMapper.delete(id);
    }

    @Override
    public Integer update(OrderDetails orderDetails) throws SQLException {
        return null;
    }

    @Override
    public OrderDetails selectById(Integer id) throws SQLException {
        return null;
    }
}
